package lesson17.cars;

public class SportCar extends Car 
{
	boolean isCabriolet;
	private double price;
	SportCar()
	{
		super(320);
	}
	
	void swichTurbo()
	{
		System.out.println("Turbo on!");
		super.accelerate(currentSpeed*2);
	}
	@Override
	protected void accelerate(double speed)
	{
		super.accelerate(speed);
		if(currentSpeed >=150)
			swichTurbo();
		System.out.println("Super car is accelerating!");
	}
	
}
